import http from '@/utils/https'
/** 
 * 首页-广告区域(pc-小程序)
 * @params {Number} distributionSite 投放位置 投放位置，1为首页，2为分类商品页） 默认是1
 * @returns Object
*/

export const getHomeBanner = (distributionSite = 1) => {
  return http({
    url: '/home/banner',
    data: { distributionSite }
  })
}
/**
 * /home/category/head/mutli
 */
export const homeCategoryHeadMutli = () => {
  return http({
    url: '/home/category/head/mutli'
  })
}
/**
 * 首页-人气推荐-小程序和app
 * /home/hot/mutli
 */
export const getHomeHotMutli = () => {
  return http({
    url: '/home/hot/mutli',
    data: 'source-client'
  })
}
// 新鲜好物_小程序
export const getHomeNew = (limit = 4) => {
  return http({
    url: '/home/new',
    data: { limit }
  })
}
// 首页-猜你喜欢-小程序和app
export const getHomeGoodsGuesslike = (guessParams) => {
  return http({
    url: '/home/goods/guessLike',
    data: { guessParams }
  })
}


export const getHomeRecommend = (url, data = {}) => {
  return http({ url, data })
}